package com.jlc.book.shop.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class LogoutAction {

	public String logout(HttpServletRequest request,
			HttpServletResponse response) {
		
		String page="index.jsp";
		request.getSession().invalidate();
		request.setAttribute("loginError", "You have logout successfully");
		
		
		return page;
	}

}
